<table>
	<thead>
		<th>
			Title
		</th>
		<th>
			Description
		</th>
		<th>
			Date
		</th>
	</thead>
	<?php foreach($events as $event): ?>
		<tr>
			<td>
				<?php if($event->belongs_to(current_user())): ?>
					<a href="?controller=Event&amp;action=edit&amp;id=<?=$event->id ?>"><?=$event->title ?></a>
				<?php else: ?>
					<a href="?controller=Event&amp;action=detail&amp;id=<?=$event->id ?>"><?=$event->title ?></a>
				<?php endif ?>
			</td>
			<td>
				<?=$event->description ?>
			</td>
			<td>
				<?=$event->event_date->format('m/d/Y') ?>
			</td>
		</tr>
	<?php endforeach ?>
</table>